package com.ninthgroup.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
public class News {
    private Integer id;

    private String newsTitle;

    private Integer kindId;

    private String newsAuthor;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date newsTime;

    private Integer newsStatus;

    private Integer newsClick;

    private String newsReason;

    private String newsUser;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date newsOuttime;

    private String newsUsername;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date newsUsertime;

    private Integer newsUppid;

    private Date newsUpptime;

    private String newsContent;

    // 新闻关联新闻类别对象
    private Kind kind;

}